<template>
    <div class="loader">
      <div class="loading">
        <div class="icon"></div>
        <div class="msg">数据加载中</div>
      </div>
    </div>
</template>

<script>
export default {
  name: 'Loading'
}
</script>

<style scoped>
  .msg{
    text-align: center;
    font-size: 12px;
    margin-top: 9px;
  }
  .icon{
    width: 38px;
    height: 38px;
    margin: 0 auto;
    animation: e 1s steps(12) infinite;
    background: transparent url() no-repeat;
    background-size: 100%;
  }
  .loader{
    /*display: flex;*/
    /*justify-content:center;*/
    background: rgba(0,0,0,.3);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99;
  }
.loading{
    width: 92px;
  height: 78px;
  background: hsla(0,0%,7%,.7);
  text-align: center;
  border-radius: 5px;
  color: #fff;
  margin: 180px auto;
  padding-top: 30px;
}
  @keyframes e {
    0% {
    transform: rotate(0deg);
}
100% {
     transform: rotate(1turn);
}
  }
</style>
